package com.yanqu.road.entity.log;


import com.yanqu.road.entity.FieldTypeAnnotation;

import javax.xml.soap.Text;
import java.math.BigInteger;
import java.sql.SQLData;
import java.sql.SQLType;
import java.sql.Types;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;

@FieldTypeAnnotation(tableName = "t_l_ck_peak_hold_mammon_help", desc = "巅峰据点战-财神助力伤害", autoSave = true, uploadCk = true)
public class LogPeakHoldMammonHelp extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "活动Id", isIndex = true)
    private int activityId;
    @FieldTypeAnnotation(desc = "轮次", isIndex = true)
    private int round;
    @FieldTypeAnnotation(desc = "进攻商会Id")
    private String unionId;
    @FieldTypeAnnotation(desc = "玩家id")
    private long userId;
    @FieldTypeAnnotation(desc = "伤害")
    private String damage;
    @FieldTypeAnnotation(desc = "分组")
    private int groupNum;
    @FieldTypeAnnotation(desc = "伤害类型")
    private int mommonType;
    @FieldTypeAnnotation(desc = "商会剩余血量", saveJson = true)
    private Map<String, Integer> unionRemainBlood;
    @FieldTypeAnnotation(desc = "奖励")
    private String rewards;
    @FieldTypeAnnotation(desc = "时间")
    private Date logTime;

    public LogPeakHoldMammonHelp(int activityId, int round, String unionId, long userId, String damage, int groupNum,
                                 int mommonType, Map<String, Integer> unionRemainBlood, String rewards) {
        this.activityId = activityId;
        this.round = round;
        this.unionId = unionId;
        this.userId = userId;
        this.damage = damage;
        this.groupNum = groupNum;
        this.mommonType = mommonType;
        this.unionRemainBlood = unionRemainBlood;
        this.rewards = rewards;
        this.logTime = new Date();
    }

    @Override
    public long getUserId() {
        return userId;
    }
}
